import os,sys

if len(sys.argv) < 2:
  print "Use: read.py file"
  sys.exit()

data = {}

k = 0
file = open(sys.argv[1])
for line in file.readlines():
  parts = line.split()
  row = int(parts[0])
  col = int(parts[1])
  val = float(parts[2])
  data[k] = [row, col, val]
  k += 1
